package com.mobileares.midp.widgets.client.menu;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2011-3-18
 * Time: 10:15:50
 * To change this template use File | Settings | File Templates.
 */
public class BriefMenu extends Composite {
    private List items = new ArrayList();
    private FlowPanel panel;

    public BriefMenu() {
        panel = new FlowPanel();
        panel.setStyleName("menu-breif");
        initWidget(panel);
    }

    public void addMenuItem(BaseMenuItem item) {
        panel.add(item);
        items.add(item);
    }
}
